#
# Copyright 2021-2024 Software Radio Systems Limited
#
# This file is part of srsRAN
#
# srsRAN is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# srsRAN is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# A copy of the GNU Affero General Public License can be found in
# the LICENSE file in the top-level directory of this distribution
# and at http://www.gnu.org/licenses/.
#

add_library(du_processor_test_helpers du_processor_test_helpers.cpp)
target_include_directories(du_processor_test_helpers PRIVATE ${CMAKE_SOURCE_DIR})
target_link_libraries(du_processor_test_helpers
        cu_cp_test_helpers
        srsran_cu_cp
        e1ap_test_helpers
        f1ap_test_helpers
        ngap_test_helpers
        rrc_ue_test_helpers
        f1ap_test_doubles
        srsran_support
        f1ap_asn1
        srslog)

set(SOURCES
        du_configuration_manager_test.cpp
        du_processor_test.cpp
        )

add_executable(du_processor_test ${SOURCES})
target_include_directories(du_processor_test PRIVATE ${CMAKE_SOURCE_DIR})
target_link_libraries(du_processor_test du_processor_test_helpers srsran_support srslog gtest gtest_main)
add_test(du_processor_test du_processor_test)
set_tests_properties(du_processor_test PROPERTIES LABELS "LABELS;du_processor")
